package cn.gok.hotelback.service.impl;
import cn.gok.hotelback.entity.OrderAppendReview;
import cn.gok.hotelback.mapper.OrderAppendReviewMapper;
import cn.gok.hotelback.service.OrderAppendReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class OrderAppendReviewServiceImpl implements OrderAppendReviewService {
    @Autowired
    private OrderAppendReviewMapper appendReviewMapper;
    @Override
    public int addAppendReview(OrderAppendReview appendReview) {
        return appendReviewMapper.insertAppendReview(appendReview);
    }
    @Override
    public List<OrderAppendReview> getAppendsByOrderId(String orderId) {
        return appendReviewMapper.selectByOrderId(orderId);
    }
    @Override
    public int updateAppendReview(Integer appendId, String appendText) {
        return appendReviewMapper.updateAppendReview(appendId, appendText);
    }
    @Override
    public int deleteByAppendId(Integer appendId) {
        return appendReviewMapper.deleteByAppendId(appendId);
    }
} 